body {
    background: linear-gradient(to bottom, #321098, #915ec3);
    /* 让背景覆盖整个页面,必须加高度否则会出现一条一条的情况 */
    height: 100%;
    /* 固定背景不随页面滚动而变化 */
    background-attachment: fixed;
}

.header {
    margin: auto;
    width: 40vw;
    position: relative;
}

.top {
    width: 150px;
    position: fixed;
    height: 30px;
    line-height: 30px;
    top: 20px;
    right: 36px;
    color: rgb(233, 232, 232);
    font-size: 15px;
}

.top span:hover {
    cursor: pointer;
    font-weight: 800;
}

.head-container {
    margin-top: 60px;
}

.header img {
    width: 200px;
    height: 52px;
    margin: auto;
    display: block;
}

.animation-L {
    position: absolute;
    top: 0;
    left: 120px;
}

.block-1 {
    width: 17px;
    height: 17px;
    color: yellow;
    animation: block-1 4s infinite;
    line-height: 17px;
    display: inline-block;
    margin: 0px 5px 0px;
}

.block-2 {
    width: 17px;
    height: 17px;
    color: yellow;
    animation: block-2 4s infinite;
    line-height: 17px;
    display: inline-block;
    margin: 0px 5px 0px;
}

@keyframes block-1 {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes block-2 {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(-360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.animation-R {
    width: 50px;
    position: absolute;
    top: 0;
    right: 135px;
}

.bar {
    width: 20px;
    height: 20px;
    background-color: rgba(159, 155, 219, 0.5);
    margin: auto;
    text-align: center;
    line-height: 20px;
    border-radius: 50% 50% 0 0;

}

@keyframes clock {
    0% {
        transform: rotate(40deg);
    }

    /* 25% {
        transform: rotate(0deg);
    } */

    50% {
        transform: rotate(-40deg);
    }

    /* 75% {
        transform: rotate(0deg);
    } */

    100% {
        transform: rotate(40deg);
    }

}

.clock {
    position: relative;
    top: -12px;
    height: 55px;
    transform-origin: center top;
    transform: rotate(30deg);
    animation: clock 2s ease-in-out infinite;
}

.string {
    position: absolute;
    width: 2px;
    height: 40px;
    left: 49%;
    background-color: rgb(218, 212, 212);
}

.weight {
    width: 20px;
    height: 20px;
    bottom: 5px;
    border-radius: 50%;
    left: 38%;
    color: yellow;
    position: absolute;
}

.weight i {
    font-size: 27px;
}

.add {
    box-sizing: content-box;
    border: 2px solid black;
    width: 40vw;
    height: 55px;
    margin-top: 25px;
    position: relative;
    border-radius: 15px;
    transition: all 0.2s linear;
}

.add:hover {
    box-shadow: 0 0 0;
}

.add-input {
    width: 100%;
    height: 100%;
    padding-right: 100px;
    padding-left: 20px;
    border-radius: 15px;
    font-size: 20px;
}

.submit {
    width: 100px;
    height: 100%;
    position: absolute;
    right: 0px;
    border-radius: 0 14px 14px 0px;
    background-color: #ac91ff;
    font-size: 20px;
    border-left: 2px solid black;
    color: rgb(41, 41, 41);
    transition: all 0.2s linear;
}

.submit:hover {
    cursor: pointer;
    background-color: #cd9aff;
}

/* 主体部分 */
.main-box {
    box-sizing: content-box;
    margin: 30px auto 0;
    width: 40vw;
    background-color: white;
    border-radius: 15px;
    box-shadow: 8px 8px 0px;
    position: relative;
    border: 2px solid black;
    transition: all 0.2s linear;
}

/* 侧边导航栏 */


/* 导航栏关闭时样式 */
.main-nav-close {
    position: fixed;
    width: 50px;
    height: 117px;
    right: 25vw;
    top: 230px;
    box-shadow: 7px 7px 0px;
    border-radius: 15px;
    transition: all 0.2s linear;
    overflow: hidden;
    border: 2px solid black;
}

.main-nav-close:hover {
    cursor: pointer;
    box-shadow: 0 0 0;
}

.switch {
    padding: 10px 10px;
    height: 40px;
    border-bottom: 2px solid black;
    background-color: #aa75de;
    text-align: center;
    font-weight: 800;
    font-size: 14px;
    border-radius: 13px 13px 0 0;
}

.shortcut-clo {
    padding: 0px 16px;
    text-align: center;
    min-height: 73px;
    font-size: 13px;
    background-color: white;
    border-radius: 0 0 15px 15px;
}

/* 导航栏开启时样式 */
.main-nav-open {
    position: fixed;
    right: 22vw;
    top: 230px;
    box-shadow: 7px 7px 0px;
    border-radius: 15px;
    transition: all 0.2s linear;
    background-color: aliceblue;
    overflow: hidden;
    border: 2px solid black;
}

.main-nav-open:hover {
    cursor: pointer;
    box-shadow: 0 0 0;
}

.shortcut-ope {
    padding: 0;
    text-align: center;
    font-size: 13px;
    background-color: white;
    border-radius: 0 0 15px 15px;
}

.shortcut-ope p {
    border-bottom: 1px solid black;
    padding: 8px 8px;
    transition: all 0.2s linear;
}

.shortcut-ope p:hover {
    background-color: #915ec3;
}

.main-head {
    height: 45px;
    width: 100%;
    font-size: 16px;
    font-weight: 800;
    border-radius: 15px 15px 0px 0px;
    line-height: 45px;
    transition: all 0.2s linear;
    border-bottom: 2px solid black;
    overflow: hidden;
}

.main-head p {
    padding-left: 30px;
}

.main-head p:focus {
    outline: none;
}

.main-head:hover {
    background-color: #cd9aff;
    cursor: pointer;
}

.thin {
    font-weight: 400;
}


/* 主页内容部分 */
.main-container {
    width: 100%;
    padding: 50px;
    color: #6e6e6e;
    position: relative;
}

.main-container ul li {
    font-size: 16px;
    margin-bottom: 25px;
}

.main-container ul li:hover {
    cursor: default;
}

/* 新增内容部分 */
.add-container {
    width: 100%;
    padding: 35px 40px;
    position: relative;
}

.add-list {
    width: 100%;
    min-height: 290px;
}

.add-list li {
    width: 100%;
    height: 60px;
    padding: 15px 50px;
    font-size: 18px;
    background-color: #cd9aff;
    border-radius: 15px;
    box-shadow: 3px 5px 0px;
    border: 2px solid black;
    margin-bottom: 25px;
    position: relative;
    transition: all 0.2s linear;
}

.add-list li:hover {
    cursor: pointer;
    box-shadow: 0 0 0;
}

.text {
    font-size: 16px;
}

.text:hover {
    cursor: text;
}

.text:focus {
    outline: none;
}


/* 新增内容样式 */
.finish {
    position: absolute;
    left: 5px;
    bottom: 12px;
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 20px;
    background-color: white;
    border-radius: 50%;
    border: 2px solid black;
    transition: all 0.1s linear;
}

.finish:hover {
    left: 7px;
    bottom: 14px;
    box-shadow: -3px 5px 0px;
    background-color: rgb(80, 14, 234);
}

.finish .iconfont {
    font-size: 28px;
    display: inline-block;
}

.delete {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 36px;
    height: 36px;
    display: inline-block;
    overflow: hidden;
    border-radius: 50%;
    transition: all 0.1s linear;
    background-color: white;
}

.delete .iconfont {
    font-size: 36px;
}

.delete:hover {
    right: 12px;
    bottom: 12px;
    box-shadow: 4px 6px 0px;
}

.OK {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 36px;
    height: 36px;
    display: inline-block;
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.1s linear;
    background-color: #ffe2f9;
}

.OK:hover {
    box-shadow: 4px 6px 0px;
    right: 12px;
    bottom: 12px;
}

.OK .iconfont {
    font-size: 39px;
}

/* 回收站部分 */
.trash-container {
    width: 100%;
    padding: 35px 40px;
    position: relative;

}

.trash-list {
    width: 100%;
    min-height: 290px;
}

.trash-list li {
    width: 100%;
    height: 60px;
    padding: 15px 10px;
    font-size: 18px;
    background-color: #cd9aff;
    border-radius: 15px;
    box-shadow: 3px 5px 0px;
    border: 2px solid black;
    margin-bottom: 25px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s linear;
}

.trash-list li:hover {
    cursor: pointer;
    box-shadow: 0 0 0;
}

.restore-btn {
    width: 38px;
    height: 38px;
    display: inline-block;
    overflow: hidden;
    border-radius: 50%;
    border: 3px #0dc4dc solid;
    background-color: white;
}

.restore-btn .iconfont {
    transition: all 0.7s ease;
    font-size: 23px;
    /* 行内元素transform属性不生效，需转换 */
    display: inline-block;
}

.restore-btn .iconfont:hover {
    transform: rotate(180deg);
    cursor: pointer;
}

.delete-forever {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.1s linear;
    background-color: white;
}

.delete-forever .iconfont {
    font-size: 36px;
}

.delete-forever:hover {
    margin-right: 2px;
    margin-bottom: 2px;
    cursor: pointer;
    box-shadow: 6px 6px 0px;
}